package com.ytjj.qmyx.admin.service;

import com.ytjj.qmyx.admin.model.response.DynamicAndTopicResponse;
import com.ytjj.qmyx.admin.model.response.DynamicTopicResponse;
import com.ytjj.qmyx.mall.model.Dynamic;
import com.ytjj.qmyx.mall.model.DynamicAndTopic;
import com.ytjj.qmyx.mall.model.DynamicTopic;

import java.util.List;

/**
 *
 * 
 * @description:
 */
public interface DynamicAndTopicService {

    /**
     * 根据测评id删除关系
     * @param dynamicId:
     * @returns: java.lang.Integer
     *
     */
    Integer delByDynamicId(Integer dynamicId);

    /**
    * 建立测评和话题的关系
    * @param dynamicId:测评Id
    * @param topicId: 话题Id
    *
    */
    boolean createDynamicTopicRelations(Integer dynamicId, List<Integer> topicId,Integer sort);


    /**
    * 获得测评和话题的关机集合
    * @param dynamicId:
    * @returns: java.util.List<com.ytjj.qmyx.admin.model.response.DynamicAndTopicResponse>
    *
    */
    DynamicAndTopicResponse getRelationsByDynamicId(Integer dynamicId);
}
